[gd_scene load_steps=6 format=3 uid="uid://bt63wsc0enli6"]

[ext_resource type="Script" path="res://Scripts/classes/tank/Tank.gd" id="1_whmwh"]

[sub_resource type="ViewportTexture" id="ViewportTexture_yeyp1"]
viewport_path = NodePath("SubViewport")

[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_t1egc"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath(".:rotation")
properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath(".:tank_hull:transform")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/3/path = NodePath(".:tank_turret:transform")
properties/3/spawn = true
properties/3/replication_mode = 1
properties/4/path = NodePath(".:hull_type")
properties/4/spawn = true
properties/4/replication_mode = 1
properties/5/path = NodePath(".:turret_type")
properties/5/spawn = true
properties/5/replication_mode = 1
properties/6/path = NodePath("SubViewport/Box/Nick:text")
properties/6/spawn = true
properties/6/replication_mode = 1
properties/7/path = NodePath("SubViewport/Box/HealthBar:value")
properties/7/spawn = true
properties/7/replication_mode = 1
properties/8/path = NodePath(".:nick_name")
properties/8/spawn = true
properties/8/replication_mode = 1

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w66ob"]
bg_color = Color(0.753026, 0.200376, 0, 1)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yqq05"]
bg_color = Color(0, 0.721569, 0.0156863, 1)

[node name="TankRoot" type="Node3D"]
script = ExtResource("1_whmwh")
turret_type = 1

[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 5.08253e-08, -1.67296e-07, 0, 0.956819, 0.290686, 1.74846e-07, -0.290686, 0.956819, -4.61828e-07, 1.51677, 2.94617)

[node name="Sprite3D" type="Sprite3D" parent="Camera3D"]
transform = Transform3D(1, -8.33622e-08, 1.53694e-07, 5.08253e-08, 0.97966, 0.200667, -1.67296e-07, -0.200667, 0.97966, 6.88694e-09, 0.461823, -2.57908)
billboard = 1
texture = SubResource("ViewportTexture_yeyp1")

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_t1egc")

[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(200, 128)

[node name="Box" type="VBoxContainer" parent="SubViewport"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -27.5
offset_top = -20.0
offset_right = 27.5
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1

[node name="Nick" type="Label" parent="SubViewport/Box"]
layout_mode = 2
theme_override_font_sizes/font_size = 18
text = "Player"
horizontal_alignment = 1
vertical_alignment = 1

[node name="HealthBar" type="ProgressBar" parent="SubViewport/Box"]
custom_minimum_size = Vector2(0, 5)
layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_w66ob")
theme_override_styles/fill = SubResource("StyleBoxFlat_yqq05")
max_value = 1000.0
value = 1000.0
show_percentage = false

[connection signal="ready" from="." to="." method="_on_ready"]
